﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using System.ServiceModel.Web;
using System.Web.UI.MobileControls;

namespace FA_WCF
{
    // 注意: 如果更改此处的接口名称 "IService1"，也必须更新 Web.config 中对 "IService1" 的引用。
    [ServiceContract]
    public interface IService_FA
    {
        [OperationContract]
        [WebGet(UriTemplate = "getAllTeams",
          BodyStyle = WebMessageBodyStyle.WrappedRequest,
          ResponseFormat = WebMessageFormat.Json,
          RequestFormat = WebMessageFormat.Json)]
        List<Teams> getAllTeams();

        [OperationContract]
        [WebGet(UriTemplate = "getFixturesByTeam/{team_id}",
          BodyStyle = WebMessageBodyStyle.WrappedRequest,
          ResponseFormat = WebMessageFormat.Json,
          RequestFormat = WebMessageFormat.Json)]
        Fixtures[] getFixturesByTeam(string team_id);

        // 任务: 在此处添加服务操作
    }

}
